#ifndef __CORE_SPI_PORT_H_
#define __CORE_SPI_PORT_H_

#include "at32project_header.h"


#define CORE_SPI_BIT_NEED_READ   (1 << 0)


#define SPI_MSG_DATA_LENGTH (8192)



void core_spi_init(void * event , uint8_t ** txbuf , uint8_t ** rxbuf);
int32_t core_spi_write_read_data(uint32_t length);
uint8_t core_cmm_detect_clear(void);


#endif

